package com.zatech.cgnci.project.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class ReportCreateDTO {

    @ApiModelProperty("报表主键")
    private Long registerId;

    @ApiModelProperty("业务类型(01:赔案清单,02:业务经营报表,03:未决赔款准备金年度汇总,04:业务监管报表),码表值:reportType")
    @NotBlank(message = "businessType cannot be null")
    private String businessType;

    @ApiModelProperty("日期-初")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT-8")
    @NotNull(message = "initialDate cannot be null")
    private Date initialDate;

    @ApiModelProperty("日期-末")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT-8")
    @NotNull(message = "periodDate cannot be null")
    private Date periodDate;

    @ApiModelProperty("评估月份-年")
    private String valuationYear;

    @ApiModelProperty("评估月份-月")
    private String valuationMonth;
}
